﻿using System;
using Grundy.Common;

namespace Grundy.Licensing.Server
{
    public class CustomerNotFoundException : Exception
    {
        private readonly Guid _customerId;
        private readonly string _customerName;

        public CustomerNotFoundException(Guid customerId = default(Guid), string customerName = null)
        {
            _customerId = customerId;
            _customerName = customerName;
        }

        public override string Message
        {
            get
            {
                return "Could not find a license for customer. {{ Customer Id: {0}, Customer: {1} }}"
                    .FormatWith(_customerId, _customerName);
            }
        }
    }
}